/**********************************************************************************
 *  (C) Copyright 2009 Molisys Solutions Co., Ltd. , All rights reserved          *
 *                                                                                *
 *  This source code and any compilation or derivative thereof is the sole        *
 *  property of Molisys Solutions Co., Ltd. and is provided pursuant to a         *
 *  Software License Agreement.  This code is the proprietary information         *
 *  of Molisys Solutions Co., Ltd and is confidential in nature.  Its use and     *
 *  dissemination by any party other than Molisys Solutions Co., Ltd is           *
 *  strictly limited by the confidential information provisions of the            *
 *  Agreement referenced above.                                                   *
 **********************************************************************************/

/**
 * @addtogroup mlsInclude
 * @{
 */

/**
 * @file mlsError.h
 * @brief	Error code definitions
 *
 * This file contains error code definitions which are used by all function that
 * return error code in project
 * @author	mlsvnusr001
 */

#ifndef __MLSERRORS_H__
#define __MLSERRORS_H__

#include "mlsTypes.h"

#ifdef __cplusplus
extern "C"
{
#endif

typedef Int32 mlsErrorCode_t;

/*---------------------------------------------------
 * Common error codes
 * --------------------------------------------------*/
#define MLS_SUCCESS                    		0 	/** Global success return status   */
#define MLS_ERROR							-1	/** Global error return status*/
#define MLS_ERR_WAITING						-2	/** waiting for processing */
#define MLS_ERR_LIMITED						-3 	/** return when over Max value*/
#define MLS_ERR_NONE_DATA					-4 	/** return when don't have response data*/
#define MLS_ERR_GET_MORE_INF				-5 	/** return when want to get next data*/
#define MLS_ERR_BAD_LC						-6  /** return when length of command incorrect*/
#define MLS_ERR_BAD_LE						-7	/** return when response data > expected data*/
#define MLS_WAR_BAD_LE						-8	/** return when response data < expected data*/
#define MLS_TIME_ERR						-9	//
#define MLS_ERR_ICC_MUTE					-10	//

#define MLS_ERR_COMPATIBILITY				-101 /** SW Interface compatibility   */
#define MLS_ERR_MAJOR_VERSION				-102 /** SW Major Version error       */
#define MLS_ERR_COMP_VERSION				-103 /** SW component version error   */
#define MLS_ERR_BAD_MODULE_ID				-104 /** SW - HW module ID error      */
#define MLS_ERR_BAD_UNIT_NUMBER				-105 /** Invalid device unit number   */
#define MLS_ERR_BAD_INSTANCE				-106 /** Bad input instance value     */
#define MLS_ERR_BAD_HANDLE					-107 /** Bad input handle             */
#define MLS_ERR_BAD_INDEX					-108 /** Bad input index              */
#define MLS_ERR_BAD_PARAMETER				-109 /** Invalid input parameter      */
#define MLS_ERR_NO_INSTANCES				-110 /** No instances available       */
#define MLS_ERR_NO_COMPONENT				-111 /** Component is not present     */
#define MLS_ERR_NO_RESOURCES				-112 /** Resource is not available    */
#define MLS_ERR_INSTANCE_IN_USE				-113 /** Instance is already in use   */
#define MLS_ERR_RESOURCE_OWNED				-114 /** Resource is already in use   */
#define MLS_ERR_RESOURCE_NOT_OWNED			-115 /** Caller does not own resource */
#define MLS_ERR_INCONSISTENT_PARAMS			-116 /** Inconsistent input params    */
#define MLS_ERR_NOT_INITIALIZED				-117 /** Component is not initialized */
#define MLS_ERR_NOT_ENABLED					-118 /** Component is not enabled     */
#define MLS_ERR_NOT_SUPPORTED				-119 /** Function is not supported    */
#define MLS_ERR_INIT_FAILED					-120 /** Initialization failed        */
#define MLS_ERR_BUSY						-121 /** Component is busy            */
#define MLS_ERR_NOT_BUSY					-122 /** Component is not busy        */
#define MLS_ERR_READ						-123 /** Read error                   */
#define MLS_ERR_WRITE						-124 /** Write error                  */
#define MLS_ERR_ERASE						-125 /** Erase error                  */
#define MLS_ERR_LOCK						-126 /** Lock error                   */
#define MLS_ERR_UNLOCK						-127 /** Unlock error                 */
#define MLS_ERR_OUT_OF_MEMORY				-128 /** Memory allocation failed     */
#define MLS_ERR_BAD_VIRT_ADDRESS			-129 /** Bad virtual address          */
#define MLS_ERR_BAD_PHYS_ADDRESS			-130 /** Bad physical address         */
#define MLS_ERR_TIMEOUT						-131 /** Timeout error                */
#define MLS_ERR_OVERFLOW					-132 /** Data overflow/overrun error  */
#define MLS_ERR_FULL						-133 /** Queue (etc.) is full         */
#define MLS_ERR_EMPTY						-134 /** Queue (etc.) is empty        */
#define MLS_ERR_NOT_STARTED					-135 /** Component stream not started */
#define MLS_ERR_ALREADY_STARTED				-136 /** Comp. stream already started */
#define MLS_ERR_NOT_STOPPED					-137 /** Component stream not stopped */
#define MLS_ERR_ALREADY_STOPPED				-138 /** Comp. stream already stopped */
#define MLS_ERR_ALREADY_SETUP				-139 /** Component already setup      */
#define MLS_ERR_NULL_PARAMETER				-140 /** Null input parameter         */
#define MLS_ERR_NULL_DATAINFUNC				-141 /** Null data input function     */
#define MLS_ERR_NULL_DATAOUTFUNC			-142 /** Null data output function    */
#define MLS_ERR_NULL_CONTROLFUNC			-143 /** Null control function        */
#define MLS_ERR_NULL_COMPLETIONFUNC			-144 /** Null completion function     */
#define MLS_ERR_NULL_PROGRESSFUNC			-145 /** Null progress function       */
#define MLS_ERR_NULL_ERRORFUNC				-146 /** Null error handler function  */
#define MLS_ERR_NULL_MEMALLOCFUNC			-147 /** Null memory alloc function   */
#define MLS_ERR_NULL_MEMFREEFUNC			-148 /** Null memory free  function   */
#define MLS_ERR_NULL_CONFIGFUNC				-149 /** Null configuration function  */
#define MLS_ERR_NULL_PARENT					-150 /** Null parent data             */
#define MLS_ERR_NULL_IODESC					-151 /** Null in/out descriptor       */
#define MLS_ERR_NULL_CTRLDESC				-152 /** Null control descriptor      */
#define MLS_ERR_UNSUPPORTED_DATACLASS		-153 /** Unsupported data class       */
#define MLS_ERR_UNSUPPORTED_DATATYPE		-154 /** Unsupported data type        */
#define MLS_ERR_UNSUPPORTED_DATASUBTYPE		-155 /** Unsupported data subtype     */
#define MLS_ERR_FORMAT						-156 /** Invalid/unsupported format   */
#define MLS_ERR_INPUT_DESC_FLAGS			-157 /** Bad input  descriptor flags  */
#define MLS_ERR_OUTPUT_DESC_FLAGS			-158 /** Bad output descriptor flags  */
#define MLS_ERR_CAP_REQUIRED				-159 /** Capabilities required ???    */
#define MLS_ERR_BAD_TMALFUNC_TABLE			-160 /** Bad TMAL function table      */
#define MLS_ERR_INVALID_CHANNEL_ID			-161 /** Invalid channel identifier   */
#define MLS_ERR_INVALID_COMMAND				-162 /** Invalid command/request      */
#define MLS_ERR_STREAM_MODE_CONFUSION		-163 /** Stream mode config conflict  */
#define MLS_ERR_UNDERRUN					-164 /** Data underflow/underrun      */
#define MLS_ERR_EMPTY_PACKET_RECVD			-165 /** Empty data packet received   */
#define MLS_ERR_OTHER_DATAINOUT_ERR			-166 /** Other data input/output err  */
#define MLS_ERR_STOP_REQUESTED				-167 /** Stop in progress             */
#define MLS_ERR_PIN_NOT_STARTED				-168/** Pin not started              */
#define MLS_ERR_PIN_ALREADY_STARTED			-169 /** Pin already started          */
#define MLS_ERR_PIN_NOT_STOPPED				-170 /** Pin not stopped              */
#define MLS_ERR_PIN_ALREADY_STOPPED			-171 /** Pin already stopped          */
#define MLS_ERR_PAUSE_PIN_REQUESTED			-172 /** Pause of single pin in progrs*/
#define MLS_ERR_ASSERTION					-173 /** Assertion failure            */
#define MLS_ERR_HIGHWAY_BANDWIDTH			-174 /** Highway bandwidth bus error  */
#define MLS_ERR_HW_RESET_FAILED				-175 /** Hardware reset failed        */
#define MLS_ERR_PIN_PAUSED					-176 /** Pin paused                   */
#define MLS_ERR_BAD_FLAGS					-177 /** Bad flags                    */
#define MLS_ERR_BAD_PRIORITY				-178 /** Bad priority                 */
#define MLS_ERR_BAD_REFERENCE_COUNT			-179 /** Bad reference count          */
#define MLS_ERR_BAD_SETUP					-180 /** Bad setup                    */
#define MLS_ERR_BAD_STACK_SIZE				-181 /** Bad stack size               */
#define MLS_ERR_BAD_TEE						-182 /** Bad tee                      */
#define MLS_ERR_IN_PLACE					-183 /** In place                     */
#define MLS_ERR_NOT_CACHE_ALIGNED			-184 /** Not cache aligned            */
#define MLS_ERR_NO_ROOT_TEE					-185 /** No root tee                  */
#define MLS_ERR_NO_TEE_ALLOWED				-186 /** No tee allowed               */
#define MLS_ERR_NO_TEE_EMPTY_PACKET			-187 /** No tee empty packet          */
#define MLS_ERR_NULL_PACKET					-189 /** Null packet                  */
#define MLS_ERR_FORMAT_FREED				-190 /** Format freed                 */
#define MLS_ERR_FORMAT_INTERNAL				-191 /** Format internal              */
#define MLS_ERR_BAD_FORMAT					-192 /** Bad format                   */
#define MLS_ERR_FORMAT_NEGOTIATE_SUBCLASS	-193 /** Format negotiate subclass    */
#define MLS_ERR_FORMAT_NEGOTIATE_DATASUBTYPE -194/** Format negot. datasubtype    */
#define MLS_ERR_FORMAT_NEGOTIATE_DATATYPE	-195 /** Format negotiate datatype    */
#define MLS_ERR_FORMAT_NEGOTIATE_DESCRIPTION -196/** Format negot. description    */
#define MLS_ERR_NULL_FORMAT					-197 /** Null format                  */
#define MLS_ERR_FORMAT_REFERENCE_COUNT		-198 /** Format reference count       */
#define MLS_ERR_FORMAT_NOT_UNIQUE			-199 /** Format not unique            */
#define MLS_ERR_NEW_FORMAT					-200 /** New format         		     */
#define MLS_ERR_NOT_FOUND					-201 /** Not Found 				     */
#define MLS_ERR_CRC							-202 /** Check CRC fail			     */
#define MLS_ERR_SPI_FAIL					-203 /** Fail to access SPI           */
#define MLS_ERR_SSP_FAIL					-204 /** Fail to access SSP			 */
#define MLS_ERR_I2C_FAIL					-205 /** Fail to access SSP			 */
#define MLS_ERR_INVALID_VERSION				-206 /** version check fail		     */
#define MLS_ERR_FLASH						-207 /** Flash has been fail, need to maintain*/
#define MLS_ERR_CM_FAIL						-208 /** Fail to access CM */
#define MLS_ERR_CONSISTENCY					-209 /** Something's not consistency  */
#define MLS_ERR_VEND_FAIL					-210 /** To report vend fail to system status */
#define MLS_ERR_PN53x						-211 /** Fail to init PN53x */
#define MLS_ERR_CONCURRENCY					-212
#define MLS_ERR_WATCHDOG_RESET				-213 /** The system has been reseted by watchdog  timer*/
#define MLS_ERR_CM_WRONGPASSWORD			-214 /** When Authenticate using Password7 is wrong*/
#define MLS_ERR_TKI_CARD_TRANSACTION		-215

#define MLS_ERR_NETWORK_START				-300 /** Fail to init network module  */
#define MLS_ERR_NETWORK_CONNECT				-301 /** Fail to connect to server    */
#define MLS_ERR_NETWORK_SSH					-302 /** Fail to start ssh session    */
#define MLS_ERR_NETWORK_AUTHEN				-303 /** Fail to authenticate ssh     */
#define MLS_ERR_NETWORK_SFTP				-304 /** Fail to start SFTP service   */
#define MLS_ERR_NETWORK_OPEN				-305 /** Fail to open network file    */
#define MLS_ERR_NETWORK_READ				-306 /** Fail to read network file    */
#define MLS_ERR_NETWORK_WRITE				-307 /** Fail to write network file   */
#define MLS_ERR_NETWORK_NOTOPENED			-308 /** Function Called when network not open*/

#define MLS_ERR_LOGON_SEND					-320
#define MLS_ERR_LOGON_RECEIVE				-321
#define MLS_ERR_LOGON_TERMINAL_BLAKCLISTED	-322
#define MLS_ERR_LOGON_INVLAID_TRANSACTION	-323
#define MLS_ERR_LOGON_LIMIT_EXCEEDED		-324
#define MLS_ERR_LOGON_BAD_TERMINAL_ID		-325
#define MLS_ERR_LOGON_INVALID_TK_INDEX		-326
#define MLS_ERR_LOGON_INVALID_MAC			-327
#define MLS_ERR_LOGON_INVALID_HOST			-328
#define MLS_ERR_LOGON_UNKNOWN				-328


#define MLS_ERR_GPRS						-400 /** GPRS general error           */
#define MLS_ERR_GPRS_OPEN					-401 /** Fail to open GPRS module     */
#define MLS_ERR_GPRS_NO_MODULE				-402 /** The module doesn't response to any command*/
#define MLS_ERR_GPRS_NO_SIM					-403 /** No SIM is inserted*/
#define MLS_ERR_GPRS_STATE					-404 /** Inappropriate state          */
#define MLS_ERR_GPRS_CONNECT				-405 /** Cannot create GPRS connection*/
#define MLS_ERR_GPRS_TCP_CONNECT			-406 /** Cannot create TCP connection */
#define MLS_ERR_GPRS_TCP_CONNECTION_LOST	-407 /** Cannot create TCP connection */

#define MLS_ERR_TDA_ACTIVATE				-500 /** Fail to activate */
#define MLS_ERR_TDA_NORESPONSE				-501 /** Fail to get response apdu from SAM */
#define MLS_ERR_TDA_SLOT					-502 /** invalid slot */
#define MLS_ERR_TDA_INVALID_CLOCK_CARD		-503 /** invalid clock rate */
#define MLS_ERR_TDA_SET_CLOCK_CARD_FAIL		-504 /** set clock rate fail */
#define MLS_ERR_TDA_INIT_FAIL				-505 /** TDA init fail */

#define MLS_SETTLEMENT_RECOVERY_SUCCESS		-600 /** Success to recorver settlement */
#define MLS_ERR_SETTLEMENT_FULL				-601 /** Can not add MD record because the storage is full */
#define MLS_ERR_SETTLEMENT_NAK				-602 /** The server don't ack the settlement file, need to resubmit */
#define MLS_ERR_SETTLEMENT_CONSISTENCY		-603 /** Settlement consistency error */
#define MLS_ERR_SETTLEMENT_RECOVERY			-604 /** Settlement consistency error */
#define MLS_ERR_SUBMIT						-605 /** fail to submit file */
#define MLS_ERR_GET_ACK						-606 /** fail to submit file */
#define MLS_ERR_SETTLEMENT_ERROR_STATE		-607 /** fail to submit file */

#define MLS_EXCEPTION_RECOVERY_SUCCESS		-650 /** success to recovery exception*/
#define MLS_ERR_EXCEPTION_FULL				-651 /** Can not add MD record because the storage is full */
#define MLS_ERR_EXCEPTION_CONSISTENCY		-652 /** Exception consistency error */
#define MLS_ERR_EXCEPTION_RECOVERY			-653 /** Exception consistency error */

#define MLSCEPAS_ERROR_CHECK_PURSEEXPIRY		-710
#define MLSCEPAS_ERROR_CHECK_PURSESTATUS		-711
#define MLSCEPAS_ERROR_CHECK_FUND				-712
#define MLSCEPAS_ERROR_CHECK_FUNDAUTOLOAD		-713
#define MLSCEPAS_ERROR_CHECK_AUTOLOADCATEGORY	-714
#define MLSCEPAS_ERROR_CHECK_REFUNDSTATUS		-715
#define MLSCEPAS_ERROR_CHECK_CARDPROFILETYPE	-716
#define MLSCEPAS_ERROR_CHECK_CARDISSUER			-717
#define MLSCEPAS_ERROR_CHECK_CAN				-718
#define MLSCEPAS_ERROR_CHECK_CARDUSERCATEGORY	-719
#define MLSCEPAS_ERROR_CHECK_BLACKLIST			-720
#define MLSCEPAS_ERROR_CHECK_PURSEBALANCE_EXCESSIVE  -721
#define MLSCEPAS_ERROR_CHECK_TRANSAMOUNT_EXCESSIVE	 -722
#define MLS_ERR_FUNCTION_DISABLED				-723 /** The issuer is not support */
#define MLSCEPAS_ERROR_CHECK_CREATION_DATE		-724

#define MLSCEPAS_ERROR_READPURSEAUTH			-730
#define MLSCEPAS_ERROR_READPURSENOAUTH			-731
#define MLSCEPAS_ERROR_GETCHALLENGE				-732
#define MLSCEPAS_ERROR_READTRANLOG				-733
#define MLSCEPAS_ERROR_UNKNOWNCSC				-734

#define MLSCEPAS_ERROR_SENDAPDUDEBIT			-740
#define MLSCEPAS_ERROR_SENDAPDUCREDIT			-741
#define MLSCEPAS_ERROR_SENDAPDUGETCHALLENGE		-742
#define MLSCEPAS_ERROR_SENDAPDUREADPURSE		-743
#define MLSCEPAS_ERROR_SENDAPDUNORESP			-744

#define MLSCEPAS_ERROR_WRONGLENGTH				-750
#define MLSCEPAS_ERROR_COMPARECERTIFICATE		-751
#define MLSCEPAS_ERROR_UNCONFIRMEDTRANSACTION	-752
#define MLSCEPAS_ERROR_UNCONFIRMEDTRANSACTION_PROCESS_FAILED -753
#define MLSCEPAS_ERROR_UNCONFIRMEDTRANSACTION_PROCESSED		 -754

#define MLSCEPAS_ERROR_INIT_FAIL				-760

#define MLS_ERR_CEPAS_TLSAM_LOADTID				-800
#define MLS_ERR_CEPAS_TLSAM_LOADMARRIAGEKEY		-801
#define MLS_ERR_CEPAS_TLSAM_MUTUALAUTHENTICATE	-802

#define MLS_ERR_BLACKLIST_MAX_SIZE				-900
#define MLS_ERR_BLACKLIST_CARD_BLOCKED			-901
#define MLS_ERR_BLACKLIST_EXPIRED				-902
#define MLS_ERR_NO_BLACKLIST					-903

#define MLS_ERR_MDB_NO_COMMAND					-1000
#define MLS_ERR_MDB_END_OF_COMMAND				-1001
#define MLS_ERR_MDB_INVALID_COMMAND				-1002


/** Ez SAM error */
#define MLSEzSAM_ERROR_SELECTAPPLICATION		-1100
#define MLSEzSAM_ERROR_ENABLEAPPLET				-1101
#define MLSEzSAM_ERROR_DEBITSESSIONKEY			-1102
#define MLSEzSAM_ERROR_CREDITSESSIONKEY			-1103
#define MLSEzSAM_ERROR_SIGNATURESESSIONKEY		-1104
#define MLSEzSAM_ERROR_ENCRYPTCREDITBLOCK		-1105


/** Nets SAM error */
#define MLSNetsSAM_ERROR_INIT_SELECTDF			-1200
#define MLSNetsSAM_ERROR_INIT_SELECTEF01		-1201
#define MLSNetsSAM_ERROR_INIT_SELECTEF01_CHKSUM	-1202
#define MLSNetsSAM_ERROR_INIT_SELECTEF02		-1203
#define MLSNetsSAM_ERROR_INIT_SELECTEF09		-1204
#define MLSNetsSAM_ERROR_INIT_SAMLOCK			-1205
#define MLSNetsSAM_ERROR_INIT_ACTIVATECMD		-1206
#define MLSNetsSAM_ERROR_INIT_ACTIVATERESP		-1207
#define MLSNetsSAM_ERROR_INITIALIZATION			-1208
#define MLSNetsSAM_ERROR_POSSESSION_VTCCMD		-1209 //verify Terminal cryptogram command
#define MLSNetsSAM_ERROR_POSSESSION_VTCRESP		-1210 //verify Terminal cryptogram response
#define MLSNetsSAM_ERROR_POSSESSION_VSC			-1211 //verify SAM cryptogram
#define MLSNetsSAM_ERROR_POSSESSIONESTABLISH	-1212 //POS session establishment
#define MLSNetsSAM_ERROR_READAUTH_VRPCCMD		-1213 //verify read purse cryptogram command
#define MLSNetsSAM_ERROR_READAUTH_VRPCRESP		-1214 //verify read purse cryptogram response
#define MLSNetsSAM_ERROR_READAUTH				-1215 //verify read purse cryptogram response
#define MLSNetsSAM_ERROR_DEBIT_GDC2CMD			-1216 //generate debit cryptogram 2 command
#define MLSNetsSAM_ERROR_DEBIT_GDC2RESP			-1217 //generate debit cryptogram 2 response
#define MLSNetsSAM_ERROR_DEBIT_GDC2				-1218 //generate debit cryptogram 2 response
#define MLSNetsSAM_ERROR_DEBIT_VDRC2CMD			-1219 //verify debit receipt cryptogram 2 command
#define MLSNetsSAM_ERROR_DEBIT_VDRC2RESP		-1220 //verify debit receipt cryptogram 2 response
#define MLSNetsSAM_ERROR_DEBIT_VDRC2EXCEPTION	-1221 //2nd bit of control byte (65th byte of purse data)
#define MLSNetsSAM_ERROR_DEBIT_VDRC2			-1222 //verify debit receipt cryptogram 2 response
#define MLSNetsSAM_ERROR_DEBIT_EXCEPTION		-1223 //2nd bit of control byte (65th byte of purse data)
#define MLSNetsSAM_ERROR_DEBIT_CMPTOKEN			-1224 //compare AuthData and token SAM
#define MLSNetsSAM_ERROR_DEBIT_CONTROLBYTE		-1225 //2nd bit of control byte (65th byte of purse data)
#define MLSNetsSAM_ERROR_EXCEPTION_CHKCONDITION	-1226 //exception handling: check condition
#define MLSNetsSAM_ERROR_EXCEPTION_VRPC2CMP		-1227 //exception handling: send command verify read purse cryptogram 2
#define MLSNetsSAM_ERROR_EXCEPTION_VRPC2RESP 	-1228 //exception handling: send respond
#define MLSNetsSAM_ERROR_EXCEPTION_VPRC2		-1229
#define MLSNetsSAM_ERROR_EXCEPTION_VPRC2VE		-1230
#define MLSNetsSAM_ERROR_EXCEPTION_VPRC2NORESP	-1231

/** Lta SAM error */
#define MLSLtaSAM_ERROR_SELECTAPPLICATION		-1300
#define MLSLtaSAM_ERROR_SAMSTATUS				-1301
#define MLSLtaSAM_ERROR_INITIALISEUPDATE		-1302
#define MLSLtaSAM_ERROR_EXTERNALAUTHENTICATE	-1303
#define MLSLtaSAM_ERROR_REQUESTMARRIAGE			-1304
#define MLSLtaSAM_ERROR_MUTUALAUTHPROCESS		-1305
#define MLSLtaSAM_ERROR_GETTERMINALRANDOMNUMBER	-1306
#define MLSLtaSAM_ERROR_REQUESTAUTHENTICATE		-1307
#define MLSLtaSAM_ERROR_REQUESTDEBIT			-1308
#define MLSLtaSAM_ERROR_REQUESTSIGNCERTIFICATE	-1309


/** define iso 7816 Response status SW error code */
#define SW_APPLET_SELECT_FAILED 				-2001
#define SW_BYTES_REMAINING_00					-2002
#define SW_CLA_NOT_SUPPORTED					-2003
#define SW_COMMAND_NOT_ALLOWED					-2004
#define SW_CONDITIONS_NOT_SATISFIED				-2005
#define SW_CORRECT_LENGTH_00					-2006
#define SW_DATA_INVALID							-2007
#define SW_FILE_FULL							-2008
#define SW_FILE_INVALID							-2009
#define SW_FUNC_NOT_SUPPORTED					-2010
#define SW_INCORRECT_P1P2						-2011
#define SW_FILE_NOT_FOUND						-2012
#define SW_INS_NOT_SUPPORTED					-2013
#define SW_NO_ERROR								-2014
#define SW_RECORD_NOT_FOUND						-2015
#define SW_SECURITY_STATUS_NOT_SATISFIED		-2016
#define SW_UNKNOWN								-2017
#define SW_WRONG_DATA							-2018
#define SW_WRONG_LENGTH							-2019
#define SW_WRONG_P1P2							-2020
#define SW_SW_BYTES_REMAINING					-2021
#define SW_UNKNOW_ERROR_CODE					-2022

/**CASIO error code*/
#define MLS_ERR_NFC_ACTIVATE                                    -2100
#define MLS_ERR_NFC_PRESENCE_CHECK                              -2101
#define MLS_ERR_NFC_CARD_REMOVED                                -2102
#define MLS_ERR_NFC_TRANSCEIVE_ERROR                            -2103
#define MLS_ERR_NFC_NOT_SUPPORTED                               -2104
#define MLS_ERR_NFC_RATS_ERROR                                  -2105
#define MLS_ERR_NFC_TRANSCEI_TIMEOUT                            -2105

#ifdef __cplusplus
}
#endif

#endif /**__MLSERRORS_H__*/


/*@}*/
